from django.urls import path
from rest_framework.routers import DefaultRouter
from . import views
from shopping.views import ClassificationViewSet, CommodityViewSet, ShoppingCartViewSet, OrderViewSet, PaymentViewSet

urlpatterns = []

router = DefaultRouter()
router.register("classifications", ClassificationViewSet)
router.register("commoditys", CommodityViewSet)
router.register("cart", ShoppingCartViewSet)
router.register("order", OrderViewSet)
router.register("payments", PaymentViewSet)
urlpatterns += router.urls
